package test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.TestService;
import service2.Test2Service;

/**
 * Copyright (c)  by www.leya920.com
 * All right reserved.
 * Create Date: 2021/6/24 2:37 下午
 * Create Author: xuweiwei
 * File Name: MainTest.java
 * Last version:  1.0
 * Function: //TODO
 * Last Update Date: 2021/6/24 2:37 下午
 * Last Update Log:
 * Comment: //TODO
 **/
public class MainTest2 {

	public static void main(String[] args) {




		// 资源
		ApplicationContext beanFactory = new ClassPathXmlApplicationContext("spring.xml");

		Test2Service service = beanFactory.getBean("test2", Test2Service.class);

		System.out.println(service.get());


	}
}
